/*
 * @Author: CPS
 * @Date: 2020-07-10 22:13:34
 * @Last Modified by: CPS
 * @Last Modified time: 2020-08-08 11:04:36
 * @Projectname Electron-YYS
 * @Filename icon.js
 *
 */

'use strict'
//生成文件路径 使用 src引入
import srcsearch from './icon/Search.svg';
import srcclose from './icon/close.svg';
import srcexcel from './icon/excel.svg';
import srcfile from './icon/file.svg';
import srcfolder from './icon/folder.svg';
import srcimg from './icon/img.svg';
import srcopenfolder from './icon/openfolder.svg';
import srcopenfolder2 from './icon/openfolder2.svg';
import srcpdf from './icon/pdf.svg';
import srcroading from './icon/roading.svg';
import srctext from './icon/text.svg';
import srcppt from './icon/ppt.svg';
import srcword from './icon/word.svg';
import srczip from './icon/zip.svg';

//生成 svg 内联元素
import svgclose from '!!svg-inline-loader!./icon/close.svg';
import svgexcel from '!!svg-inline-loader!./icon/excel.svg';
import svgsearch from '!!svg-inline-loader!./icon/Search.svg';
import svgfile from '!!svg-inline-loader!./icon/file.svg';
import svgfolder from '!!svg-inline-loader!./icon/folder.svg';
import svgimg from '!!svg-inline-loader!./icon/img.svg';
import svgopenfolder from '!!svg-inline-loader!./icon/openfolder.svg';
import svgopenfolder2 from '!!svg-inline-loader!./icon/openfolder2.svg';
import svgpdf from '!!svg-inline-loader!./icon/pdf.svg';
import svgroading from '!!svg-inline-loader!./icon/roading.svg';
import svgtext from '!!svg-inline-loader!./icon/text.svg';
import svgppt from '!!svg-inline-loader!./icon/ppt.svg';
import svgword from '!!svg-inline-loader!./icon/word.svg';
import svgzip from '!!svg-inline-loader!./icon/zip.svg';

//src的目录前缀
function prefix(t) {
  return 'renderer/' + t
}

export default {
  src: {
    close: prefix(srcclose),
    excel: prefix(srcexcel),
    xls: prefix(srcexcel),
    xlsx: prefix(srcexcel),
    file: prefix(srcfile),
    folder: prefix(srcfolder),
    img: prefix(srcimg),
    openfolder: prefix(srcopenfolder),
    openfolder2: prefix(srcopenfolder2),
    pdf: prefix(srcpdf),
    roading: prefix(srcroading),
    text: prefix(srctext),
    ppt: prefix(srcppt),
    word: prefix(srcword),
    doc: prefix(srcword),
    docx: prefix(srcword),
    zip: prefix(srczip),
  },
  svg: {
    search: svgsearch,
    close: svgclose,
    excel: svgexcel,
    xls: svgexcel,
    xlsx: svgexcel,
    file: svgfile,
    folder: svgfolder,
    img: svgimg,
    openfolder: svgopenfolder,
    openfolder2: svgopenfolder2,
    pdf: svgpdf,
    roading: svgroading,
    text: svgtext,
    ppt: svgppt,
    word: svgword,
    doc: svgword,
    docx: svgword,
    zip: svgzip,
  }
}